﻿using Microsoft.MixedReality.Toolkit.Utilities;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ClippingSetup : MonoBehaviour,GDGeek.IExecute
{
    [SerializeField]
    private GameObject _target;
    [SerializeField]
    private ClippingBox _clipping;
    public void execute()
    {
        _clipping.ClearRenderers();
        Renderer[] renderers = _target.GetComponentsInChildren<Renderer>();
        foreach (var renderer in renderers) {
            _clipping.AddRenderer(renderer);
        }
       
    }

 
}
